import {
	packApiUrl
} from "./common.js"
export function request(options) {
	console.log(options, "开始")

	options.url = packApiUrl(options.url)
	console.log(options.url, "rul")
	options.header = {
		'access-key': "images"
	}

	return new Promise((resolve, reject) => {
		uni.request({
			...options,
			success: res => {
				resolve(res.data);
			},
			fail: err => {
				reject(err)
			}
		})
	})
}